package com.junbao.message.domain.enums;

/**
 * 通知数据类型
 * @author yilin
 *
 */
public enum NotifyDataType {

	JSON(10,"JSON");
	
	private Integer code;
	
	private String message;
	
	NotifyDataType(Integer code,String message){
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public static NotifyDataType getNotifyDataTypeByCode(int code){
		switch (code) {
		case 10:
			return JSON;
		}
		return null;
	}
	
}
